package chapter14.web;

import chapter14.core.*;

import chapter14.domain.Menu;

import chapter14.manager.MenuManager;

import com.softwarementors.extjs.djn.config.annotations.DirectFormPostMethod;
import com.softwarementors.extjs.djn.config.annotations.DirectMethod;


public class MenuAction extends DirectAction<Menu> {
    private MenuManager menuManager;

    @Override
    protected MenuManager getEntityDao() {
        return menuManager;
    }

    public void setMenuManager(MenuManager menuManager) {
        this.menuManager = menuManager;
    }

    @DirectMethod
    public Object list() throws Exception {
        return super.list();
    }
}
